package com.eerl.pdev.werl.impl;

import com.eerl.pdev.werl.ERpcReturn;
import lombok.AllArgsConstructor;

@AllArgsConstructor
public class OtpObjectRpcReturn implements ERpcReturn<ErlangType> {

    private boolean isSuccess;
    private String caseMatch;
    private String errMsg;
    private ErlangType data;

    @Override
    public boolean getRetFlag() {
        return isSuccess;
    }

    @Override
    public String getCaseMatch() {
        return caseMatch;
    }

    @Override
    public String getErrMsg() {
        return errMsg;
    }

    @Override
    public ErlangType getData() {
        return data;
    }

}
